package com.csi.service;

import com.csi.domain.UserBook;

import java.util.Date;

public interface UserBookService {
    int saveBook(long userId, String checkTime, String leaveTime, int roomNum, double bookPrice, String phone, long hotelId, long roomTypeId);

    int payment(UserBook userBook);

    int completed(long bookId);

    int evaluated(long bookId);

    Object sec(long userId, String checkTime, String leaveTime, int roomNum, double bookPrice, String phone, long hotelId, long roomTypeId);

    /**
     * 根据入住日、离店日、房型模糊查询可订几间房
     * @param roomId
     * @param check_time
     * @param leave_time
     * @return
     */
    int findRoomNum(int roomId, String check_time, String leave_time);



}
